//
//  Common.swift
//  Weibo
//
//  Created by apple on 15/12/7.
//  Copyright © 2015年 idcast. All rights reserved.
//

import UIKit
///切换跟试图控制器的通知 名字一定要够长 要有前缀
let WBSwitchRootViewControllerNotification = "WBSwitchRootViewControllerNotification"

///选中照片通知
let WBStatusSelectedPhotoNotification = "WBStatusSelectedPhotoNotification"
///选中照片的key - indexpath
let WBStatusSelectedPhotoIndexPathKey = "WBStatusSelectedPhotoIndexPathKey"
/// 选中照片的 KEY - URL 数组
let WBStatusSelectedPhotoURLsKey = "WBStatusSelectedPhotoURLsKey"


///全局外观渲染的颜色  延展出配色的延展类
let WBAppearanceTintColor = UIColor.orangeColor()


func delay(delta: Double, callFunc: ()->()) {
    
    dispatch_after(
        dispatch_time(DISPATCH_TIME_NOW, Int64(delta * Double(NSEC_PER_SEC))),
        dispatch_get_main_queue()) {
            
            callFunc()
    }
}